package zhouzhouyongche.client_util;

import java.io.Serializable;

public class ClientTicket implements Comparable<ClientTicket>, Serializable{

	private static final long serialVersionUID = 1L;
	private int id;
    private String startCity;
    private String busNumber;
    private String startPassengerStation;
    private String endSite;
    private String endCity;
    private int year;
    private int month;
    private int day;
    private int hour;
    private int minute;
    private float price;

    private int inventory;
    private String busType;
    
    private String startTime; //后台管理要用到
    
	public String getStartCity() {
		return startCity;
	}
	public void setStartCity(String startCity) {
		this.startCity = startCity;
	}
	public String getStartPassengerStation() {
		return startPassengerStation;
	}
	public void setStartPassengerStation(String startPassengerStation) {
		this.startPassengerStation = startPassengerStation;
	}
	
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public String getBusType() {
		return busType;
	}
	public void setBusType(String busType) {
		this.busType = busType;
	}
	public int getInventory() {
		return inventory;
	}
	public void setInventory(int inventory) {
		this.inventory = inventory;
	}
	public String getEndSite() {
		return endSite;
	}
	public void setEndSite(String endSite) {
		this.endSite = endSite;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	@Override
	public int compareTo(ClientTicket compare) {
		return new Integer(hour).compareTo(new Integer(compare.getHour()));
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getBusNumber() {
		return busNumber;
	}
	public void setBusNumber(String busNumber) {
		this.busNumber = busNumber;
	}
	public String getEndCity() {
		return endCity;
	}
	public void setEndCity(String endCity) {
		this.endCity = endCity;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	
}
